package com.t.bricks.bussiness.db.entity.prizemanage.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.t.bricks.annotation.DataInfo;

/**
 * 奖金管理'PrizeManage'表实体类
 * 警告:非数据库字段禁止在此添加,应该创建扩展实体中添加
 * @author HuangXinBian
 * @DateTime 2022年08月18日 14:12:30
 */
@ApiModel("奖金管理PrizeManage")
@DataInfo(sDbName="BricksOA", sTableName="PrizeManage")
public class PrizeManageBase implements Serializable {

	private static final long serialVersionUID = 1L;// 使用rmi时需修改

	/**
	 * 表编号
	 */
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="sId", sComment="表编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=true, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=0 )
	@ApiModelProperty(value="表编号", example="")
	//[end]
	protected String sId;

	/**
	 * 分配标签
	 */
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="sTitle", sComment="分配标签", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=20, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=1 )
	@ApiModelProperty(value="分配标签", example="")
	//[end]
	protected String sTitle;

	/**
	 * 分配时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="dDate", sComment="分配时间", isDbField=true, sDbFileType="date",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=2 )
	@ApiModelProperty(value="分配时间", example="")
	//[end]
	protected Date dDate;
	
	/**
	 * 奖金总额
	 */
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="mSumMoney", sComment="奖金总额", isDbField=true, sDbFileType="decimal",
		sDefaultData="0.00", isExtra=false, iskey=false, isNull=false,
		iMaxLength=10, isDecimal=false, iIntegralLength=6, iDecimalLength=2, iIndex=3 )
	@ApiModelProperty(value="奖金总额", example="0.00")
	//[end]
	protected BigDecimal mSumMoney;
	
	/**
	 * 实际发放
	 */
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="mUseMoney", sComment="实际发放", isDbField=true, sDbFileType="decimal",
		sDefaultData="0.00", isExtra=false, iskey=false, isNull=false,
		iMaxLength=10, isDecimal=false, iIntegralLength=6, iDecimalLength=2, iIndex=4 )
	@ApiModelProperty(value="实际发放", example="0.00")
	//[end]
	protected BigDecimal mUseMoney;
	
	/**
	 * 剩余奖金
	 */
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="mSurplusMoney", sComment="剩余奖金", isDbField=true, sDbFileType="decimal",
		sDefaultData="0.00", isExtra=false, iskey=false, isNull=false,
		iMaxLength=10, isDecimal=false, iIntegralLength=6, iDecimalLength=2, iIndex=5 )
	@ApiModelProperty(value="剩余奖金", example="0.00")
	//[end]
	protected BigDecimal mSurplusMoney;

	/**
	 * 发放人数
	 */
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="iPersionCount", sComment="发放人数", isDbField=true, sDbFileType="int",
		sDefaultData="0", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=6 )
	@ApiModelProperty(value="发放人数", example="0")
	//[end]
	protected Integer iPersionCount;

	/**
	 * 备注
	 */
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="sMemo", sComment="备注", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=200, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=7 )
	@ApiModelProperty(value="备注", example="")
	//[end]
	protected String sMemo;

	/**
	 * 创建者
	 */
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="sCreator", sComment="创建者", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=8 )
	@ApiModelProperty(value="创建者", example="")
	//[end]
	protected String sCreator;

	/**
	 * 创建时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="dCreateDate", sComment="创建时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=9 )
	@ApiModelProperty(value="创建时间", example="")
	//[end]
	protected Date dCreateDate;

	/**
	 * 修改人
	 */
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="sModifieder", sComment="修改人", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=10 )
	@ApiModelProperty(value="修改人", example="")
	//[end]
	protected String sModifieder;

	/**
	 * 修改时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="dModifiedDate", sComment="修改时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=11 )
	@ApiModelProperty(value="修改时间", example="")
	//[end]
	protected Date dModifiedDate;

	/**
	 * 状态
	 */
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="iState", sComment="状态", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=1, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=12 )
	@ApiModelProperty(value="状态", example="1")
	//[end]
	protected Integer iState;

	/**
	 * 序号
	 */
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="iIndex", sComment="序号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=13 )
	@ApiModelProperty(value="序号", example="1")
	//[end]
	protected Integer iIndex;

	/**
	 * 版本号
	 */
	//[start]
	@DataInfo( sDbName="BricksOA", sTableName="PrizeManage",
		sName="iVersion", sComment="版本号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=15, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=14 )
	@ApiModelProperty(value="版本号", example="1")
	//[end]
	protected Integer iVersion;

	/**
	 * 取 表编号
	 * @return String
	 */
	public String getsId() {
		return sId;
	}

	/**
	 * 设置表编号
	 * @param sId
	 */
	public void setsId(String sId) {
		this.sId = sId;
	}

	/**
	 * 取 分配标签
	 * @return String
	 */
	public String getsTitle() {
		return sTitle;
	}

	/**
	 * 设置分配标签
	 * @param sTitle
	 */
	public void setsTitle(String sTitle) {
		this.sTitle = sTitle;
	}

	/**
	 * 取 分配时间
	 * @return Date
	 */
	public Date getdDate() {
		return dDate;
	}

	/**
	 * 设置分配时间
	 * @param dDate
	 */
	public void setdDate(Date dDate) {
		this.dDate = dDate;
	}

	/**
	 * 取 奖金总额
	 * @return Long
	 */
	public BigDecimal getmSumMoney() {
		return mSumMoney;
	}

	/**
	 * 设置 奖金总额
	 * @param mSumMoney
	 */
	public void setmSumMoney(BigDecimal mSumMoney) {
		this.mSumMoney = mSumMoney;
	}

	/**
	 * 取 实际发放
	 * @return Long
	 */
	public BigDecimal getmUseMoney() {
		return mUseMoney;
	}

	/**
	 * 设置 实际发放
	 * @param mUseMoney
	 */
	public void setmUseMoney(BigDecimal mUseMoney) {
		this.mUseMoney = mUseMoney;
	}

	/**
	 * 取 剩余奖金
	 * @return Long
	 */
	public BigDecimal getmSurplusMoney() {
		return mSurplusMoney;
	}

	/**
	 * 设置 剩余奖金
	 * @param mSurplusMoney
	 */
	public void setmSurplusMoney(BigDecimal mSurplusMoney) {
		this.mSurplusMoney = mSurplusMoney;
	}

	/**
	 * 取 发放人数
	 * @return Integer
	 */
	public Integer getiPersionCount() {
		return iPersionCount;
	}

	/**
	 * 设置发放人数
	 * @param iPersionCount
	 */
	public void setiPersionCount(Integer iPersionCount) {
		this.iPersionCount = iPersionCount;
	}

	/**
	 * 取 备注
	 * @return String
	 */
	public String getsMemo() {
		return sMemo;
	}

	/**
	 * 设置备注
	 * @param sMemo
	 */
	public void setsMemo(String sMemo) {
		this.sMemo = sMemo;
	}

	/**
	 * 取 创建者
	 * @return String
	 */
	public String getsCreator() {
		return sCreator;
	}

	/**
	 * 设置创建者
	 * @param sCreator
	 */
	public void setsCreator(String sCreator) {
		this.sCreator = sCreator;
	}

	/**
	 * 取 创建时间
	 * @return Date
	 */
	public Date getdCreateDate() {
		return dCreateDate;
	}

	/**
	 * 设置创建时间
	 * @param dCreateDate
	 */
	public void setdCreateDate(Date dCreateDate) {
		this.dCreateDate = dCreateDate;
	}

	/**
	 * 取 修改人
	 * @return String
	 */
	public String getsModifieder() {
		return sModifieder;
	}

	/**
	 * 设置修改人
	 * @param sModifieder
	 */
	public void setsModifieder(String sModifieder) {
		this.sModifieder = sModifieder;
	}

	/**
	 * 取 修改时间
	 * @return Date
	 */
	public Date getdModifiedDate() {
		return dModifiedDate;
	}

	/**
	 * 设置修改时间
	 * @param dModifiedDate
	 */
	public void setdModifiedDate(Date dModifiedDate) {
		this.dModifiedDate = dModifiedDate;
	}

	/**
	 * 取 状态
	 * @return Integer
	 */
	public Integer getiState() {
		return iState;
	}

	/**
	 * 设置状态
	 * @param iState
	 */
	public void setiState(Integer iState) {
		this.iState = iState;
	}

	/**
	 * 取 序号
	 * @return Integer
	 */
	public Integer getiIndex() {
		return iIndex;
	}

	/**
	 * 设置序号
	 * @param iIndex
	 */
	public void setiIndex(Integer iIndex) {
		this.iIndex = iIndex;
	}

	/**
	 * 取 版本号
	 * @return Integer
	 */
	public Integer getiVersion() {
		return iVersion;
	}

	/**
	 * 设置版本号
	 * @param iVersion
	 */
	public void setiVersion(Integer iVersion) {
		this.iVersion = iVersion;
	}

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return PrizeManageBase
	 */
	public static PrizeManageBase copy(PrizeManageBase source) {
		if (null == source) {
			return null;
		}
		
		PrizeManageBase target = new PrizeManageBase();
		target.setsId(source.getsId());
		target.setsTitle(source.getsTitle());
		target.setdDate(source.getdDate());
		target.setmSumMoney(source.getmSumMoney());
		target.setmUseMoney(source.getmUseMoney());
		target.setmSurplusMoney(source.getmSurplusMoney());
		target.setiPersionCount(source.getiPersionCount());
		target.setsMemo(source.getsMemo());
		target.setsCreator(source.getsCreator());
		target.setdCreateDate(source.getdCreateDate());
		target.setsModifieder(source.getsModifieder());
		target.setdModifiedDate(source.getdModifiedDate());
		target.setiState(source.getiState());
		target.setiIndex(source.getiIndex());
		target.setiVersion(source.getiVersion());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return PrizeManageBase
	 */
	public PrizeManageBase clone() {
		return copy(this);
	}
	
}
